home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 3.1 KB | 91 lines | [TEXT/MPS ] |
- //----------------------------------------------------------------------------------------
- // UCommandSkeleton.cp
- // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved.
- //----------------------------------------------------------------------------------------
-
- #ifndef __UCOMMANDSKELETON__
- #include "UCommandSkeleton.h"
- #endif
-
- #ifndef __UDOCUMENTSKELETON__
- #include "UDocumentSkeleton.h"
- #endif
-
-
- //========================================================================================
- // CLASS TCommandSkeleton
- //========================================================================================
- #undef Inherited
- #define Inherited TCommand
-
- #pragma segment ASelCommand
- MA_DEFINE_CLASS_M1(TCommandSkeleton, Inherited);
-
- //----------------------------------------------------------------------------------------
- // TCommandSkeleton constructor
- //----------------------------------------------------------------------------------------
- #pragma segment ASelCommand
-
- TCommandSkeleton::TCommandSkeleton()
- {
- fDocumentSkeleton = NULL;
- } // TCommandSkeleton::Initialize
-
- //----------------------------------------------------------------------------------------
- // TCommandSkeleton destructor
- //----------------------------------------------------------------------------------------
- #pragma segment MADestructorRes
-
- TCommandSkeleton::~TCommandSkeleton()
- {
- }
-
- //----------------------------------------------------------------------------------------
- // TCommandSkeleton::ICommandSkeleton:
- //----------------------------------------------------------------------------------------
- #pragma segment ASelCommand
-
- void TCommandSkeleton::ICommandSkeleton(CommandNumber itsCommandNumber,
- TDocumentSkeleton* itsDocumentSkeleton)
- {
- this->ICommand(itsCommandNumber,itsDocumentSkeleton,kCanUndo,kCausesChange,itsDocumentSkeleton);
- fDocumentSkeleton = itsDocumentSkeleton;
- } // TCommandSkeleton::ICommandSkeleton
-
- //----------------------------------------------------------------------------------------
- // TCommandSkeleton::DoIt:
- //----------------------------------------------------------------------------------------
- #pragma segment ADoCommand
-
- void TCommandSkeleton::DoIt() // Override
- {
- SysBeep(2);
- } // TCommandSkeleton::DoIt
-
- //----------------------------------------------------------------------------------------
- // TCommandSkeleton::RedoIt:
- //----------------------------------------------------------------------------------------
- #pragma segment ADoCommand
-
- void TCommandSkeleton::RedoIt(void) // override
- {
- Inherited::RedoIt(); // TCommand::RedoIt simply calls DoIt, but this is not
- // always adequate
- } // TCommandSkeleton::RedoIt
-
- //----------------------------------------------------------------------------------------
- // TCommandSkeleton::UndoIt:
- //----------------------------------------------------------------------------------------
- #pragma segment ADoCommand
-
- void TCommandSkeleton::UndoIt() // Override
- {
- SysBeep(2);
- SysBeep(2);
- } // TCommandSkeleton::UndoIt
-
- //----------------------------------------------------------------------------------------
- // End of UCommandSkeleton.cp
-
- #pragma segment Inline
-